<?php
apf_require_class('APF_Controller');
apf_require_class('Const_ApiError');
apf_require_class('Bll_Hr_OutInterface');
abstract class Api_AbstractController extends APF_Controller {
    protected $apf = NULL;
    protected $request = NULL;
    protected $response = NULL;

    public function __construct() {
        parent::__construct();
        $this->apf = APF::get_instance();
        $this->request = $this->apf->get_request();
        $this->response = $this->apf->get_response();
    }

    public function json_encode($status,$res){
        $result = array(
                'status'=>$status,
                'data'=>$res
        );
        echo json_encode($result);
        exit();
    }
}
